build_guard "benchmark" || return

print_title "Build for benchmark" && cd "$BUILD_TOOL_DEP_ROOT/benchmark"
cmake -S . -B "build" -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DCMAKE_BUILD_TYPE=Release -DBENCHMARK_ENABLE_GTEST_TESTS=OFF
cmake --build "build" --config Release --target install

: '
Usage:
find_package(benchmark CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE benchmark::benchmark benchmark::benchmark_main)
'
